/*
 * WidgetSonido.h
 *
 *  Created on: 20/06/2012
 *      Author: lucho0
 */

#ifndef WIDGETSONIDO_H_
#define WIDGETSONIDO_H_

#include <stdio.h>
#include <list>
#include <iostream>

#include "SDL/SDL.h"
#include "SDL/SDL_mixer.h"

//Sound effects paths

#define EXPLOTION_DEFAULT_SOUND_EFFECT "./resources/Sounds/Effects/explosion.wav"
#define SHIP_DEFAULT_SOUND_EFFECT "./resources/Sounds/Effects/ship_damage.wav"
#define BASE_DEFAULT_SOUND_EFFECT "./resources/Sounds/Effects/base_damage.wav"
#define BULLET_DEFAULT_SOUND_EFFECT "./resources/Sounds/Effects/bullet.wav"
#define MISSILE_DEFAULT_SOUND_EFFECT "./resources/Sounds/Effects/missile.wav"
#define LASER_DEFAULT_SOUND_EFFECT "./resources/Sounds/Effects/laser.wav"
#define MINA_DEFAULT_SOUND_EFFECT "./resources/Sounds/Effects/mina.wav"

class WidgetSonido {
public:
	WidgetSonido(std::string soundPath);
	void playSound();
	virtual ~WidgetSonido();
private:
	Mix_Chunk *effect;

};

#endif /* WIDGETSONIDO_H_ */
